package org.dev.lms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import org.dev.common.core.entity.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 图书库存信息
 * </p>
 *
 * @author dean.x.liu
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BookInventory extends TenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 图书ID
     */
    private Long bookId;

    /**
     * 总数量
     */
    private Integer totalQty;

    /**
     * 在馆数量
     */
    private Integer inPavilion;

    /**
     * 借阅数量
     */
    private Integer borrowQty;

    /**
     * 所在分馆
     */
    private Long libraryId;
    @TableField(exist = false)
    private String bookName;
    @TableField(exist = false)
    private String bookBarCode;
    @TableField(exist = false)
    private String author;
    @TableField(exist = false)
    private String publisher;
    @TableField(exist = false)
    private String libraryName;

}
